home *** CD-ROM | disk | FTP | other *** search
- Path: newsbf02.news.aol.com!not-for-mail
- From: ctreen@aol.com (CTreen)
- Newsgroups: comp.lang.c
- Subject: Help! Random access files and Structure Arrays.
- Date: 21 Mar 1996 07:14:13 -0500
- Organization: America Online, Inc. (1-800-827-6364)
- Sender: root@newsbf02.news.aol.com
- Message-ID: <4irh6l$pvi@newsbf02.news.aol.com>
- Reply-To: ctreen@aol.com (CTreen)
- NNTP-Posting-Host: newsbf02.mail.aol.com
-
- Help.. I've been working on a program that read and wrote a character
- array to a file. It let you update each member of the structure array and
- it used two files, the one you wanted to edit and a temp file to keep back
- up copies of the file until you made the changes to the array member of
- the structure array. Needless to say this was quite lengthy... I bought
- Turbo C++ the last month and a book on it yesterday.. while glancing
- through the book I found a small(5 page) section on Random access files. I
- made a small little program and well.. it bites. I have this little file
- that I'm willing to show someone who wants to help me. Basically I want to
- know how I can write and update each member of the array without adding to
- what's already there. I know this is confusing, if anyone would like to
- help me I would be very interested.
-
- - Colin
-